import React from 'react'
import { NavLink } from "react-router-dom"
import router from "../../router"
import "./index.css"
export default function Nav() {
    return (
        <div className='nav'>

            {
                router.map((item, index) => {
                    return  !item.meta.isHidden  && <NavLink key={index} to={`${item.path}`}>{item.meta.title}</NavLink>
                })
            }
        </div>
    )
}
